int read(void *dest, int size)
Parameter | Type | Description |
---|---|---|
dest | void * | destination memory pointer |
size | int | number of bytes to read |
Returns the actual number of bytes copied to the destination buffer.
This function reads an specified number of bytes from the opened file into the dest memory buffer. If the number of bytes requested is more than the bytes available in the file, only the available bytes are copied and the number of bytes actually copied are returned.